FlexGrid for WinRT
Cell Merging

The AllowMerging property on the grid enables cell merging at the grid level. Once you have enabled merging at the grid level, use the Row.AllowMerging and the Column.AllowMerging properties to select the specific rows and columns that should be merged.

For example, the code below causes the grid to merge cells that contain the same country:

Visual Basic
Copy Code
' enable merging in the scrollable area
flexgrid1.AllowMerging = AllowMerging.Cells
' on columns "Country" and "FirstName"
flexgrid1.Columns("Country").AllowMerging = true
flexgrid1.Columns("FirstName").AllowMerging = true

C#
Copy Code
// enable merging in the scrollable area
flexgrid1.AllowMerging = AllowMerging.Cells;

// on columns "Country" and "FirstName"
flexgrid1.Columns["Country"].AllowMerging = true;
flexgrid1.Columns["FirstName"].AllowMerging = true;

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |   Documentation Feedback